﻿using System;
using System.ComponentModel.DataAnnotations;
using SelfService.Model.Models;
using WalkingTec.Mvvm.Core;

namespace SelfService.Model
{
    public class SysPatientMedicalProject : TopBasePoco
    {
        [Display(Name = "就诊号")]
        [StringLength(128)]
        public string TreatmentNo { get; set; }

        [Display(Name = "患者")]
        public SysPatient Patient { get; set; }

        [Display(Name = "患者")]
        public Guid? PatientId { get; set; }

        [Display(Name = "医疗项目")]
        public SysMedicalProject Project { get; set; }

        [Display(Name = "医疗项目")]
        public Guid? ProjectId { get; set; }

        [Display(Name = "缴费单")]
        public SysPrescription Prescription { get; set; }

        [Display(Name = "缴费单")]
        public Guid? OrderId { get; set; }

        [Display(Name = "是否锁定")]
        public bool IsLock { get; set; }

        [Display(Name = "锁定人")]
        public FrameworkUser LockBy { get; set; }

        [Display(Name = "支付状态")] 
        public PayStatusEnum PayStatusEnum { get; set; } = PayStatusEnum.待支付;

        [Display(Name = "退款状态")] 
        public RefundStatusEnum RefundStatus { get; set; } = RefundStatusEnum.未发起;

        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; } = DateTime.Now;

        [Display(Name = "创建人")]
        public FrameworkUser CreateBy { get; set; }

        [Display(Name = "更新时间")]
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        [Display(Name = "更新人")]
        public FrameworkUser UpdateBy { get; set; }
    }
}
